|
|
|
|
|
|
|
Exponentiation (^) and equality (=) |
|
|
|
|
|
|
|
|
Multiplication (*), division(/), and less than (<) |
|
|
|
|
|
|
|
|
Integer division (\) and greater than (>) |
|
|
|
|
|
|
|
|
Modulus (Mod) and less than or equal to (<=) |
|
|
|
|
|
|
|
|
Addition (+), subtraction (-), and greater than or equal to (>=) |
|
|
|
|
|
|
|
|
Arrays can be used when you need to store many elements under a common name. You have the option using of single- or multidimensional arrays. User-defined types allow you to create your own custom data type based on a combination of the simple data types. Constants are used so that you dont need to hard-code the same values over and over again in your applications. By creating a constant, you make it much easier to change the constants value later without having to search through your entire application. |
|
|
|
|
|
|
|
|
1. What will the following code produce? |
|
|
|
|
|
|
|
|
Dim aintValues() As Integer
ReDim aintValues(1)
aintValues(0) = 10
Print aintValues(0) |
|
|
|
|
|
|
|
|
What is displayed by the following code? |
|
|
|
|
|
|
|
|
ReDim aintValues(2)
aintValues(1) = 20
Print aintValues(0) |
|
|
|
|
|
|
|
|
What is displayed by the following code? |
|
|
|
|
|